package com.le.sarrs.web.model;

import java.lang.reflect.Field;

public class RecommendParam extends ParamObject {

	/**
	 * 推荐接口参数
	 * 
	 * @author gaojiawei
	 */

	private static final long serialVersionUID = 6983145766404349211L;
	private String version_type = "" ;
	private String cid = "" ;
	private String lang = "" ;
	private String lc = "" ;
	private String uid = "" ;
	private String from = "" ;
	private String sessionid = "" ;
	private String versiontype = "" ;
	private String accessToken = "" ;
	private String enable_suggest_tag = "" ;
	private String max_behot_time = "" ;
	private String min_behot_time = "" ;
	private String count = "" ;
	private String suggest_tag = "" ;
	private String queryString = "" ;
	private String isIdInclude = "" ;

	private String suggest_tag_num ;

	
	private Location location;
	
	public String getIsIdInclude() {
		return isIdInclude;
	}

	public void setIsIdInclude(String isIdInclude) {
		this.isIdInclude = isIdInclude;
	}



	public String getVersion_type() {
		return version_type;
	}

	public void setVersion_type(String version_type) {
		this.version_type = version_type;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}


	public String getLang() {
		return lang;
	}

	public void setLang(String lang) {
		this.lang = lang;
	}

	public String getLc() {
		return lc;
	}

	public void setLc(String lc) {
		this.lc = lc;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getSessionid() {
		return sessionid;
	}

	public void setSessionid(String sessionid) {
		this.sessionid = sessionid;
	}

	public String getVersiontype() {
		return versiontype;
	}

	public void setVersiontype(String versiontype) {
		this.versiontype = versiontype;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getQueryString() {
		return queryString;
	}

	public void setQueryString(String queryString) {
		this.queryString = queryString;
	}

	public String getEnable_suggest_tag() {
		return enable_suggest_tag;
	}

	public void setEnable_suggest_tag(String enable_suggest_tag) {
		this.enable_suggest_tag = enable_suggest_tag;
	}

	public String getSuggest_tag() {
		return suggest_tag;
	}

	public void setSuggest_tag(String suggest_tag) {
		this.suggest_tag = suggest_tag;
	}

	public String getMax_behot_time() {
		return max_behot_time;
	}

	public void setMax_behot_time(String max_behot_time) {
		this.max_behot_time = max_behot_time;
	}

	public String getMin_behot_time() {
		return min_behot_time;
	}

	public void setMin_behot_time(String min_behot_time) {
		this.min_behot_time = min_behot_time;
	}

	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}
	
	public String toString(){
		Field[]  fields = this.getClass().getDeclaredFields();
		StringBuffer sb =new StringBuffer();
		for(Field f:fields){
				try {
					sb.append(f.getName())
					.append("=")
					.append(f.get(this))
					.append("&");
				} catch (IllegalArgumentException e) {
					sb.append("&");
				} catch (IllegalAccessException e) {
					sb.append("&");
				}
		
		}
		
		return sb.toString();
	}
	
	
	public static void main(String[] args){
		RecommendParam p = new RecommendParam();
		p.setAccessToken("token");
		p.setAppname("lejian");
		p.setBrand("a");
		p.setCid("13");
		p.setCount("12");
		Location location = new Location();
		location.setClientIp("127.0.0.1");
		location.setRegion("zh");
		System.out.println(p);
	}

	public String getSuggest_tag_num() {
		return suggest_tag_num;
	}

	public void setSuggest_tag_num(String suggest_tag_num) {
		this.suggest_tag_num = suggest_tag_num;
	}
}
